package com.hmall.cart;

import com.hmall.api.config.DefaultFeignConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
// 开启OpenFegin功能, 可以扫描到那些Feign客户端
//@EnableFeignClients(clients = {ItemClient.class})
//@EnableFeignClients(basePackages = {"com.heima.hmall.client"})
//basePackages 扫描指定包下的Feign客户端 defaultConfiguration feign的配置类(日志记录级别)
@EnableFeignClients(basePackages = "com.hmall.api.client")
@MapperScan("com.hmall.cart.mapper")
@SpringBootApplication
public class CartApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class, args);
    }
}
